﻿using Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Domain.IRepositories
{
    public interface IRoleMenuRepository : IRepository<RoleMenu>
    {
        RoleMenu GetById(Int32 id);

        IQueryable<RoleMenu> GetAll(string roleid);

        IQueryable<RoleMenu> GetPageList(string SearchKeyWords, int PageSize, int PageCurrent, string OrderField, bool OrderDirection = true);
        bool AddOrUpdate(RoleMenu model);

        bool DeleteById(int id);

        bool Delete(string roleid);
    }
}
